package cn.roadtrip.mtravelbusinessmodule.bs.tuorgroup;

import cn.roadtrip.utilmodule.util.DataBean;
import lombok.*;
import org.jooq.DSLContext;
import org.redisson.api.RedissonClient;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.redis.core.StringRedisTemplate;
import org.springframework.stereotype.Component;

/**
 * 增值产品核销操作
 */
@Component
public class TravelAddValueProductImpl {

    @Autowired
    private DSLContext dslContext;

    @Autowired
    private StringRedisTemplate redisTemplate;
    @Autowired
    private RedissonClient redissonClient;//分布式锁

    @Data
    @Builder
    @AllArgsConstructor
    @NoArgsConstructor
    @EqualsAndHashCode
    public static class Model_createDealCode {
        private String userId; //用户ID
        private String travelGroupId; //所跟团
        private String productId;//增值产品ID
    }

    /**
     * 创建增值产品服务核销代码
     *
     * @param model
     * @return
     */
    public DataBean createDealCode(Model_createDealCode model) {
        //检查增值产品
        return null;
    }
}
